package rng

import "wzgames/pkg/utils/dateutil"

// BeginSeed 玩家服务端种子生成
func BeginSeed(agtId int64, uid uint64) (string, string) {
	t := dateutil.UnixMilli()
	seed := GenSeed(t, agtId, int64(uid))
	nextSeed := GenSeed(t+1, agtId, int64(uid))
	return seed, nextSeed
}

// NextSeed 玩家服务端种子生成
func NextSeed(seed, agtId int64, uid uint64) string {
	s := GenSeed(agtId, int64(uid), seed)
	return s
}
